package com.mybatis.mappers;

import com.mybatis.core.Select;
import com.mybatis.domain.User;

import java.util.List;

/**
 * @author yangjian
 */
public interface UserMapper {

  @Select("select * from user where id = #{id}")
  User selectById(int id);

  @Select("Select * from user")
  List<User> selectUsers();

}
